package model;

/**
 * Created by wrh on 17-8-14.
 * 文字区域
 */

public class TextBlock extends Block {

    //文字内容
    private String content;
    //文字颜色
    private String color;
    //文字字体
    private int font;
    //置信度
    private float confidence;

    public TextBlock(int docImgID, MyRect rect, String content, String color, int font, float confidence) {
        super(docImgID, rect);
        this.content = content;
        this.color = color;
        this.font = font;
        this.confidence = confidence;
    }

    public float getConfidence() {
        return confidence;
    }

    public void setConfidence(float confidence) {
        this.confidence = confidence;
    }

    public TextBlock(int id) {
        super(id);
    }

    public TextBlock(int docImgID, MyRect rect) {
        super(docImgID, rect);
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }


    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getFont() {
        return font;
    }

    public void setFont(int font) {
        this.font = font;
    }


    @Override
    public String toString() {
        return "TextBlock{" +
                "content='" + content + '\'' +
                ", color='" + color + '\'' +
                ", font=" + font +
                '}';
    }
}
